Skip to content

修复失效的 Star History 图表 - #142

Open
OctoBored wants to merge 1 commit into
datawhalechina:mainfrom
OctoBored:fix/star-history-chart
Open

修复失效的 Star History 图表#142
OctoBored wants to merge 1 commit into
datawhalechina:mainfrom
OctoBored:fix/star-history-chart

Conversation

@OctoBored

Copy link
Copy Markdown

背景

当前项目 README 中的 Star History 图表因接口限制已无法正常显示,需要尽快修复。

改动

  • 将根目录 README 及全部多语言版本中的 Star History 图表替换为可正常工作的服务
  • 同步更新图表链接与图片地址

相关文件

  • README.md
  • docs-readme/ 下全部 10 个多语言 README

受接口限制影响,当前 README 中的 Star History 图表已无法正常加载。已将其迁移到可正常工作的服务,并同步更新根目录 README 及所有多语言版本,使图表恢复正常显示。

@linhongyu510 linhongyu510 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SVG migration is useful, but the clickable targets introduced by this PR are not currently usable.

What I verified:

  • both original api.star-history.com endpoints return HTTP 200 SVG placeholders whose text says GitHub restricted access to star data and whose response header is x-chart-status: restricted
  • both replacement star-history.dera.page/svg endpoints return HTTP 200, valid SVG, contain the datawhalechina/easy-vibe chart, and preserve the date/timeline and dark/light parameters
  • all 11 README variants are covered consistently: each has three replacement SVG URLs, two replacement click URLs, and no remaining old-domain URLs
  • the replacement service is publicly sourced in Mubelotix/SimRepo; its hash parser supports the #owner/repo&type=...&legend=... format used here

Blocking issue:

I opened both the replacement service root and the exact PR target

https://star-history.dera.page/#datawhalechina/easy-vibe&type=timeline&legend=top-left

twice in a real browser. Both pages entered the site's error boundary with:

Something went wrong
An unexpected error occurred. Please try refreshing the page.

The browser recorded two 403 responses from https://api.github.com/repos/Mubelotix/simrepo; the target page never displayed datawhalechina/easy-vibe or a Timeline chart. The SVG backend still worked, so this specifically affects the new <a href> and Markdown link destinations rather than the embedded images.

Please keep the verified SVG srcset/image migration, but point the clickable destinations to something that works without the failing interactive UI, such as the corresponding direct SVG URL, or retain another verified stable destination. Then re-check both link targets in a clean browser.

The branch is currently 8 commits behind main but GitHub reports MERGEABLE/CLEAN; current main still contains the old restricted image endpoints. No CI checks or commit statuses are reported for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants